<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="">
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>订单编号：</label>
            <label class="text-inline">
                    {$row.order_no}
            </label>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>销售组织：</label>
            <label class="text-inline">
                    {:factory_name($row.sale_number)}
            </label>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>业务员：</label>
            <label class="text-inline">
                    {$row.staff_number}{$row.staff_name}
            </label>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>下单时间：</label>
            <label class="text-inline">
                    {$row.create_time}
            </label>
        </div>
        <hr style="border-top: 2px solid #bbbbbb;">
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>异常原因</label>
            <div class="col-md-6 col-sm-10">
                <table class="table table-hover table-bordered">
                    <foreach name="row.error_list" item="vo">
                    <thead>
                        <tr>
                            <th>{$vo.type}</th>
                        </tr>
                        <tr>
                            <td>{$vo.reason}</td>
                        </tr>
                    </thead>
                    </foreach>
                </table>
            </div>
        </div>
        <hr style="border-top: 2px solid #bbbbbb;">
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>产品</label>
            <div class="col-md-6 col-sm-10">
                <table class="table table-hover table-bordered">
                    <thead>
                        <tr>
                            <th>产品</th>
                            <th>数量</th>
                            <th>售价</th>
                            <th>基本价</th>
                            <th>运费</th>
                            <th>利息</th>
                            <th>议价</th>
                            <th>总价</th>
                        </tr>
                        <foreach name="row.product" item="vo">
                            <tr>
                                <td>{$vo.wuliao}({$vo.baozhuang}KG)</td>
                                <td>{$vo.weight}</td>
                                <td>{$vo.price+$vo.freight+$vo.interest+$vo.yijia}</td>
                                <td>{$vo.price}</td>
                                <td>{$vo.freight}</td>
                                <td>{$vo.interest}</td>
                                <td>{$vo.yijia}</td>
                                <td>{$vo.total}</td>
                            </tr>
                        </foreach>
                    </thead>
                </table>
            </div>
        </div>
        <hr style="border-top: 2px solid #bbbbbb;">
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>出货工厂：</label>
            <label class="text-inline">
                    {$row.factory_name}
            </label>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>配送方式：</label>
            <label class="text-inline">
                    {$row.type}
            </label>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>配送地址：</label>
            <label class="text-inline">
                    {$row.receiving_address}
            </label>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>约定发货日：</label>
            <label class="text-inline">
                    {$row.fahuo_date}
            </label>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>付款方式：</label>
            <label class="text-inline">
                    {$row.pay_type}
            </label>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>付款账期：</label>
            <label class="text-inline">
                    {$row.pay_account}
            </label>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span>特别交代：</label>
            <label class="text-inline">
                    {$row.remarks}
            </label>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>